/**
 * All rights Reserved, Designed By 信鸥科技
 * project : Innovation-design
 * Created by youquer on 17/11/15.
 * 注意：本内容仅限于信鸥科技有限公司内部传阅，禁止外泄以及用于其他的商业目的
 * Description:
 *
 */
import request from '../utils/request';

/**-------------------------------------------*/
//新闻列表
export async function postList(params) {
  return request('/admin/news/list', {
    method: 'POST',
    body: params,
  });
}


//新闻删除
export async function postRemove(params) {
  return request('/admin/news/delete', {
    method: 'POST',
    body: params,
  });
}

//新闻添加
export async function postAdd(params) {
  return request('/admin/news/add', {
    method: 'POST',
    body: params,
  });
}


//新闻新闻修改
export async function postUpdate(params){
  return request('/admin/news/update', {
    method: 'POST',
    body: params,
  });
}

//新闻跳到修改
export async function postToUpdate(params){
  return request('/admin/news/toUpdate', {
    method: 'POST',
    body: params,
  });
}

//新闻新闻详情
export async function postInfo(params){
  return request('/admin/news/detail', {
    method: 'POST',
    body: params,
  });
}



